package com.cosina.mr;

import java.util.Map;

import android.app.Activity;
import android.os.Bundle;

import com.cosina.mr.dao.DAOFactory;
import com.cosina.mr.part.statistics.TotalPieChart;

public class StatisticsMain extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Map<String,Integer> result = DAOFactory.getStatistics(this).queryTotal();
		setContentView(R.layout.piechart);
		TotalPieChart chart = (TotalPieChart)findViewById(R.id.piechart);
		chart.setData(result);
	}

}
